package com.vanke.devops.domain.manager.influxdb;

/**
 * @author 陈景阳
 * @since 2018/6/12
 */
public interface InfluxDbQuerySql {

    String CPU_SQL = "SELECT mean(\"usage_user\") FROM \"cpu\" WHERE (\"host\" = '%s') AND time >= now() - 15m GROUP BY time(60s) fill(linear);";

    String MEM_SQL = "SELECT mean(\"used_percent\") FROM \"mem\" WHERE (\"host\" = '%s') AND time >= now() - 15m GROUP BY time(60s) fill(linear)";

    String DISK_SQL = "SELECT mean(\"used_percent\") FROM \"disk\" WHERE (\"host\" = '%s') AND time >= now() - 15m GROUP BY time(60s) fill(linear)";


}
